import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import Login from '../views/Login.vue'
import Register from '../views/Register.vue'
import StationList from '../views/StationList.vue'
import StationInfo from "../views/StationInfo.vue";

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    {
      path: '/register',
      name: 'register',
      component: Register
    },
    {
      path: '/station-list',
      name: 'station-list',
      component: StationList
    },
    {
      path: '/station-info/:id',
      name: 'station-info',
      component: StationInfo
    }
  ]
})

export default router